package com.aoip.telemetry.telemetry.entity.order;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 指令发送记录
 * @author chenbai
 * @version 1.0
 * @date 2022/7/19 22:33
 */
@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("order_record")
@ApiModel(description = "指令发送记录信息表")
public class OrderRecordEntity implements Serializable {
    private static final long serialVersionUID = 8201079814667001182L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("数据id")
    private String id;

    @TableField(value = "order_id")
    @ApiModelProperty("关联指令id")
    private String orderId;

    @TableField(value = "st_code")
    @ApiModelProperty("关联测站编码")
    private String stCode;

    @TableField(value = "order_tree_id")
    @ApiModelProperty("同一组指令id")
    private String orderTreeId;

    @TableField(value = "status")
    @ApiModelProperty("指令状态")
    private String status;

    @TableField(value = "order_num")
    @ApiModelProperty("顺序号")
    private int orderNum;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("删除标识")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "remark")
    @ApiModelProperty("备注信息")
    private String remark;

}
